﻿Ext.define('yzmh.view.chapter.EditMulti', {
    extend: 'Ext.window.Window',
    alias: 'widget.chaptereditmulti',

    title: '多项编辑章节',
    layout: 'fit',
    autoShow: true,
    width: 640,

    initComponent: function () {
        
        this.items = [
            {
                xtype: 'form',
                border: true,
                frame: true,
                bodyPadding: '5 5 0',
                fieldDefaults: {
                    labelAlign: 'right',
                    labelWidth: 60,
                    anchor: '100%'
                },
                items: [{
                    xtype: 'hidden',
                    name: 'ids'
                }, {
                    xtype: 'hidden',
                    name: 'cid'
                }, {
                    xtype: 'textfield',
                    name: 'zjmc',
                    fieldLabel: '名称过滤'
                }, {
                    xtype: 'numberfield',
                    name: 'start',
                    fieldLabel: '起始数字'
                }, {
                    xtype: 'textfield',
                    name: 'unit',
                    fieldLabel: '单位'
                }]
            }
        ];

        this.buttons = [
            {
                text: '保存',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});
